#include <iostream>
#include <string>
using namespace std;

int main() {
    string str = "Hello";
    for (int i = 0; i < 5; i++) 
		cout << str[i] << " ";
    
		
		
    cout << endl;
    delete[] dynStr;//删除
    
    
    
    char matrix[2][10] = {"Hello", "World"};//矩阵初始化
    for (int i = 0; i < 2; i++) {//矩阵输出
        for (int j = 0; j < 10; j++) {
            if (matrix[i][j] != '\0') cout << matrix[i][j] << " ";
        }
    }
    cout << endl;
    
    
	char target = 'l';
    bool found = false;
    for (int i = 0; i < str.size(); i++) {//查询
        if (str[i] == target) {
            found = true;
            break;
        }
    }
    
    
    cout << endl;
    
    
    return 0;
}
